package org.myspringmvc.web.servlet;

import java.util.Locale;

/**
 * @ClassName: ViewResolver
 * @Author: YLY
 * @Description: 视图解析器接口
 * @Date: 2025/9/21
 * @Version: 1.0
 */
public interface ViewResolver {

    /**
     * 解析试图名称，返回视图对象
     * @param viewName
     * @param locale
     * @return
     * @throws Exception
     */
    View resolveViewName(String viewName, Locale locale) throws Exception;
}
